<?php

global $wpdb;
if ('POST' == $_SERVER['REQUEST_METHOD'] && !empty($_POST['action'])) {
    switch ($_POST['action']) {
        case $value:


            break;

        default:
            break;
    }
}
?>